package javabase.schoolwork.day6_12;

import java.util.ArrayList;
import java.util.List;

/**
 * @author fance
 * @date 18-6-13 下午12:23
 */
public class Student {
    private String name;
    private int  age;
    private List<Course> courseList;

    public Student() {
        courseList = new ArrayList<>();
    }

    public Student(String name, int age) {
        this();
        this.name = name;
        this.age = age;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    public List<Course> getCourseList() {
        return courseList;
    }

    public void setCourseList(List<Course> courseList) {
        this.courseList = courseList;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }


}
